
#include "tip.h"
#include "ui_tip.h"
#include<QPixmap>
#include<choose.h>

tip::tip(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::tip)
{
    ui->setupUi(this);
    setWindowTitle("进入杰哥地牢！");
    setWindowIcon(QIcon(":/image/target3.jpg"));
    QPixmap pixmap = QPixmap("://image/background.png").scaled(this->size());
    QPalette  palette (this->palette());
    palette .setBrush(QPalette::Background, QBrush(pixmap));
    this-> setPalette( palette );
}

tip::~tip()
{
    delete ui;
}

void tip::on_pushButton_clicked()
{
    choose* c;
    c=new choose;
    this->close();
    c->show();
}

void tip::on_pushButton_2_clicked()
{
    choose* c;
    c=new choose;
    this->close();
    c->show();
}
